import { GET, POST, DELETE } from '@/utils/request'
import { objToQuery } from '@/utils/param'

/**
 * 分页获取所有管理员信息
 */
export const getAdminInfo = (params) => GET('/admin/management/getList', params)

/**
 * 添加成员
 */
export const addAdmin = (data) => POST(`/admin/management/add${ objToQuery(data) }`)

/**
 * 删除成员
 */
export const deleteAdmin = (userId) => DELETE(`/admin/management/delete/${ userId }`)
